# Contributor: Ian Bashford <ianbashford@gmail.com>
# Maintainer: Ian Bashford <ianbashford@gmail.com>
pkgname=doggo
pkgver=0.4.1
pkgrel=3
pkgdesc="A modern command-line DNS client, additionally supporting DoH, DoT and DNSCrypt protocols"
url="https://github.com/mr-karan/doggo"
arch="all"
license="GPL-3.0-only"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/mr-karan/doggo/archive/v$pkgver.tar.gz"
options="!check" #no test suite

build() {
	make CLI_BIN="./doggo" VERSION=$pkgver build-cli
}

package() {
	install -m755 -D $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
4db19fe259ff535d160bb1011b178bb47fe6b8ff17728b00893f9de81b841aeb03113bb8ee4a3ebcff604362767b00cb078ee80b08b1386e00e72556f567fbe1  doggo-0.4.1.tar.gz
"
